<%--
  Created by IntelliJ IDEA.
  User: 阿阿阿阿豪丶
  Date: 2018/5/15
  Time: 15:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<h1>使用html实现</h1>

<p>1</p>
<p>2</p>
<p>...</p>
<p>100</p>

<h1>Java实现</h1>
<%
for (int i = 1; i<= 100;i++){
    out.write("<p>" + i + "<p>");
}

%>
<h1>JSTL实现</h1>
<C:forEach var ="i" begin = "1" end ="100">
    <p>${i}</p>
</C:forEach>
</body>
</html>
